import request from 'utils/request'

// 领取星券
export function GiveStarcoupon(params) {
  return request({
    url: '/Starcoupon/GiveStarcoupon',
    method: 'post',
    params
  })
}
// 领取星券加密
export function GiveStarcouponByEnId(enId) {
  return request({
    url: '/Starcoupon/GiveStarcouponByEnId?enId=' + enId,
    method: 'post'
  })
}
// 领取星券列表
export function GetCodePage(params) {
  return request({
    url: '/Starcoupon/GetCodePage',
    method: 'post',
    params
  })
}
//获取星券分页
export function GetDisCodePage(data) {
  return request({
    url: '/Starcoupon/GetDisCodePage',
    method: 'post',
    data: data
  })
}
//获取批次列表
export function GetStarcouponBatchListByUser(data) {
  return request({
    url: '/Starcoupon/GetStarcouponBatchListByUser',
    method: 'post',
    data: data
  })
}
//生成二维码海报
export function GetImageTemplateImage(params) {
  return request({
    url: '/Visual/GetImageTemplateImage',
    method: 'get',
    params: params
  })
}
